<%@ page import="forum.Kategorie" %>



<div class="fieldcontain ${hasErrors(bean: kategorieInstance, field: 'fragen', 'error')} ">
	<label for="fragen">
		<g:message code="kategorie.fragen.label" default="Fragen" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${kategorieInstance?.fragen?}" var="f">
    <li><g:link controller="frage" action="show" id="${f.id}">${f?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="frage" action="create" params="['kategorie.id': kategorieInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'frage.label', default: 'Frage')])}</g:link>
</li>
</ul>

</div>

<div class="fieldcontain ${hasErrors(bean: kategorieInstance, field: 'name', 'error')} ">
	<label for="name">
		<g:message code="kategorie.name.label" default="Name" />
		
	</label>
	<g:textField name="name" value="${kategorieInstance?.name}"/>
</div>

